/**
 * @description 扫描各种码，允许选择相册扫描
 * @returns { Stirng }  扫描结果
 */

function scanQr() {
  return new Promise(resolve => {
    my.scan({
      scanType: ['qrCode', 'barCode'],
      hideAlbum: true,
      success: res => {
        resolve(res);
      },
    });
  });
}
export default scanQr;
